package com.lyf.practice.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.beans.BeanProperty;
import java.beans.ConstructorProperties;

/**
 * @author LYF
 * @date 2022/6/22
 */
class Person{
    private String name;
    private Integer age;
}


@Component
public class ComponentTestBean {
    @Bean
    @Scope(scopeName = "")

    Person person(){return new Person();}



}
